home *** CD-ROM | disk | FTP | other *** search
/ The Very Best of Atari Inside / The Very Best of Atari Inside 1.iso / mint / mint110s / welcome.c < prev    next >
C/C++ Source or Header  |  1994-01-31  |  2KB  |  87 lines

  1. /* welcome.c - MiNT welcome message
  2.  * Copyright 1992,1993,1994 Atari Corp.  All Rights Reserved.
  3.  *=======================================================================
  4.  * 920625 kbad
  5.  */
  6. #include "mint.h"
  7. #include "version.h"
  8.  
  9. const char *memprot_notice = "\
  10. You have used -m to turn off memory\r\n\
  11. protection.  On a 68000, you don't\r\n\
  12. need to do this because MiNT will\r\n\
  13. do it for you automagically.\r\n";
  14.  
  15. const char *memprot_warning = "\033p\
  16.             *** WARNING ***            \033q\r\n\
  17. You have turned off memory protection.\r\n\
  18. This is not recommended, and may not be\r\n\
  19. supported in the future.\r\n";
  20.  
  21. const char *insuff_mem_warning = "\033p\
  22.             *** WARNING ***            \033q\r\n\
  23. Your system's memory is not large enough\r\n\
  24. to permit memory protection to be enabled.\r\n";
  25.  
  26. const char *greet1 = "\r\n\033p\033f\
  27.  MiNT is Now TOS (" __DATE__ ")         \033q\r\n\
  28.  MiNT v"; /*x.xx prelim version PL xx*/
  29.  
  30. #if defined(BETA) || !defined(MULTITOS)
  31. const char *greet2 = "\r\n\
  32.  \xbd 1990,1991,1992 Eric R. Smith\r\n\
  33.  MultiTOS kernel\r\n\
  34.  \xbd 1992,1993,1994 Atari Corporation\r\n\
  35.  All Rights Reserved.\r\n\033p\
  36.  Use this program at your own risk!    \033q\r\n\r\n";
  37. #else
  38. const char *greet2 = "\r\n\
  39.  \xbd 1990,1991,1992 Eric R. Smith\r\n\
  40.  MultiTOS kernel\r\n\
  41.  \xbd 1992,1993 Atari Corporation\r\n\033p\
  42.  All Rights Reserved.                  \033q\r\n\r\n";
  43. #endif
  44.  
  45. #ifdef MULTITOS
  46. /*
  47.  * "boot MultiTOS?" messages, in various langauges:
  48.  */
  49.  
  50.  
  51. struct yn_message {
  52.     const char *message;    /* message to print */
  53.     char    yes_let;    /* letter to hit for yes */
  54.     char    no_let;        /* letter to hit for no */
  55. } boot_it[MAXLANG] = {
  56. { "Load MultiTOS?   (y)es (n)o ", 'y', 'n' },
  57. { "MultiTOS laden?   (j)a (n)ein ", 'j', 'n' },
  58. { "Charger MultiTOS?   (o)ui (n)on ", 'o', 'n' },
  59. { "Load MultiTOS?   (y)es (n)o ", 'y', 'n' },        /* reserved */
  60. { "¿Cargar MultiTOS?   (s)i (n)o ", 's', 'n' },    /* upside down ? is 168 dec. */
  61. { "Carica MultiTOS?   (s)i (n)o ", 's', 'n' }
  62. };
  63.  
  64.  
  65. /*
  66.  * ask the user whether s/he wants to boot MultiTOS; returns 1 if
  67.  * yes, 0 if no
  68.  */
  69.  
  70. int
  71. boot_kernel_p()
  72. {
  73.     extern int gl_lang;
  74.     struct yn_message *msg;
  75.     int y;
  76.  
  77.     msg = &boot_it[gl_lang];
  78.     Cconws(msg->message);
  79.     y = (int) Cconin();
  80.     if (tolower(y) == msg->yes_let)
  81.         return 1;
  82.     else
  83.         return 0;
  84. }
  85.  
  86. #endif /* MULTITOS */
  87.